:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background-color: #f5f5f5;
}

#app {
  height: 100%;
  width: 100%;
}

/* Element Plus 全局样式覆盖 */
.el-menu {
  border-right: none !important;
}

.el-menu-item {
  height: 50px !important;
  line-height: 50px !important;
}

.el-menu-item.is-active {
  background-color: var(--el-color-primary) !important;
}

.el-button {
  border-radius: 4px !important;
}

.el-button--primary {
  background-color: var(--el-color-primary) !important;
  border-color: var(--el-color-primary) !important;
}

.el-button--primary:hover {
  background-color: var(--el-color-primary-light-3) !important;
  border-color: var(--el-color-primary-light-3) !important;
}

.el-button--danger {
  background-color: var(--el-color-danger) !important;
  border-color: var(--el-color-danger) !important;
}

.el-button--danger:hover {
  background-color: var(--el-color-danger-light-3) !important;
  border-color: var(--el-color-danger-light-3) !important;
}

.el-table {
  border-radius: 4px !important;
  overflow: hidden !important;
}

.el-table th {
  background-color: var(--el-fill-color-light) !important;
  color: var(--el-text-color-primary) !important;
  font-weight: 500 !important;
}

.el-pagination {
  margin-top: 20px !important;
  justify-content: flex-end !important;
}

.el-input__inner {
  border-radius: 4px !important;
}

.el-input__inner:focus {
  border-color: var(--el-color-primary) !important;
  box-shadow: 0 0 0 2px var(--el-color-primary-light-5) !important;
}

.el-message {
  border-radius: 4px !important;
}

.el-message--success {
  background-color: var(--el-color-success-light-9) !important;
  border-color: var(--el-color-success-light-5) !important;
}

.el-message--error {
  background-color: var(--el-color-danger-light-9) !important;
  border-color: var(--el-color-danger-light-5) !important;
}